  <h2>View Daily Sale</h2>
  <div style="width:400px;" class="lstable2">
   
      <table width="100%" border="0" cellspacing="0" cellpadding="4">
       <tr>
          <td width="30%" align="left" valign="middle"><strong>Super Mercado :</strong></td>
          <td width="60%" align="left" valign="middle">
          	{$sale.store_name}
          </td>
          <td width="10%">&nbsp;</td>
        </tr>
        <tr>
          <td width="20%" align="left" valign="middle"><strong>Fecha : <span class="mandatory"></span></strong></td>
          <td width="70%" align="left" valign="middle">
          	{$sale.sale_date}
          </td>
          <td width="10%">&nbsp;</td>
        </tr>
         <tr>
          <td width="20%" align="left" valign="middle"><strong>Diario Total :</strong></td>
          <td width="70%" align="left" valign="middle">
          	{$sale.total_sale}
          </td>
          <td width="10%">&nbsp;</td>
        </tr>
        <tr>
          <td width="20%" align="left" valign="middle"><strong>Effectivo : <span class="mandatory"></span></strong></td>
          <td width="70%" align="left" valign="middle">
          	{$sale.sale_cash}
          </td>
          <td width="10%">&nbsp;</td>
        </tr>
        <tr>
          <td width="20%" align="left" valign="middle"><strong>Terjeta Credito : <span class="mandatory"></span></strong></td>
          <td width="70%" align="left" valign="middle">
          	{$sale.sale_credit}
          </td>
          <td width="10%">&nbsp;</td>
        </tr>
        
       
       
        <tr>
          <td width="20%" align="left" valign="top"><strong>Factura Pagado : </strong></td>
          <td width="70%" align="left" valign="top"> 
           	{assign var='total_bill_paid' value=0} 
            {foreach from=$sale.bill_paid_detail item=bill_row}
             {assign var='total_bill_paid' value=$total_bill_paid+$bill_row.bill_paid}
             	{if $bill_row.bill_paid ne 0}
		      <div style="padding:2px">
              	<div style="float:left;width:40px;" > {$bill_row.bill_paid} </div>   
                <div style="float:left"> ({$bill_row.company_name}) </div>  
                <div class="clear"></div>
              </div>  
              	{/if}
            {/foreach}
            
            <div style="padding:2px"> 
            	<div style="float:left;width:40px;" > <strong>{$total_bill_paid}</strong>  </div>  
                <div style="float:left">  <strong>Factura Pagado</strong> </div> 
                <div class="clear"></div> 
            </div>
			
            
            
          </td>
          <td width="10%">&nbsp;</td>
        </tr>
        
         <tr>
          <td width="20%" align="left" valign="middle"><strong>Banco : <span class="mandatory"></span></strong></td>
          <td width="70%" align="left" valign="middle">
          	{$sale.cash_left} 
          </td>
          <td width="10%">&nbsp;</td>
        </tr>
        
      </table>
  </div>
